<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='zh-CN' xml:lang='zh-CN' xmlns='http://www.w3.org/1999/xhtml'>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta http-equiv="Content-Language" content="zh-CN"/>
        <meta name="robots" content="index, follow" />
        <link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico" />
        <title>氿上网</title>
        {$system_css}
        {$system_js}
        <script>
            var editor;
            KindEditor.ready(function(K) {
                editor = K.create('textarea[name="description"]', {
                    resizeType : 1,
                    allowPreviewEmoticons : false,
                    allowImageUpload : false,
                    items : [
                        'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
                        'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
                        'insertunorderedlist', '|', 'emoticons']
                });
            });
        </script>
        <script type="text/javascript">
            $(function(){
                $("#myform").validate({
                    rules: {
                        name:'required',
                        description:'required'
                    },
                    messages: {
                        name: "店铺名称不能为空",
                        description:'店铺介绍不能为空'
                    }
                });
            })
        </script>
    </head>
    <body>
        <div id="OSC_Screen">
            {include file="header.html"}
            <div id="OSC_Content" class='CenterDiv'>
                {include file='user_nav.html'}
                {include file="message.html"}
                <div class="MainForm" id="reg_page">

                    <form id="myform" name="myform" action="#" method="post" style="float:left; width:700px;" enctype="MULTIPART/FORM-DATA" >
                        <table cellspacing='0' cellpadding='0'>
                            <tr id='tr_user'>
                                <th >店标：</th>
                                <td>
                                    <input type="file" name="store_logo" id="store_logo" />
                                    <br/>
                                    {if $data.store_logo != ''}
                                    <img src="{$data.store_logo}" width="100" height="100" style="border: 1px solid #ccc">
                                        {/if}
                                </td>    			
                            </tr>

                            <tr id='tr_user'>
                                <th >店铺横幅：</th>
                                <td>
                                    <input type="file" name="store_banner" id="store_logo" />
                                    <br/>
                                    {if $data.store_banner != ''}
                                    <img src="{$data.store_banner}" width="300" height="100" style="border: 1px solid #ccc">
                                        {/if}
                                </td>    			
                            </tr>

                            <tr id='tr_user'>
                                <th >店铺名称：</th>
                                <td>
                                    <input type='text' name='name' id='name'  class='TEXT' style='width:400px;' value="{$data.name}"/>
                                </td>    			
                            </tr>
                            <tr id='tr_user'>
                                <th>联系电话：</th>
                                <td>
                                    <input type='text' name='phone' id='phone'  class='TEXT' style='width:200px;' value="{$data.phone}"/>
                                </td>    			
                            </tr>
                            <tr id='tr_user'>
                                <th>阿里旺旺：</th>
                                <td>
                                    <input type='text' name='wangwang' id='wangwang'  class='TEXT' style='width:200px;' value="{$data.wangwang}"/>
                                </td>    			
                            </tr>

                            <tr id='tr_user'>
                                <th>联系QQ：</th>
                                <td>
                                    <input type='text' name='qq' id='qq'  class='TEXT' style='width:200px;' value="{$data.qq}"/>
                                </td>    			
                            </tr>

                            <tr id='tr_user'>
                                <th >店铺简介：</th>
                                <td>
                                    <textarea name="description" id="description" style="width:600px;height:220px;">{$data.description}</textarea>
                                </td>    			
                            </tr>
                            <tr class='buttons'>
                                <th>&nbsp;</th>		
                                <td style='padding:20px 0;'>
                                    <input type="hidden" value="{$action}" name="_action">
                                        <input type='submit' value=' 更改 ' class='BUTTON SUBMIT'/><br/><br/>
                                </td>
                            </tr>
                        </table>
                    </form>
                    <div class='clear'></div>
                </div>

            </div>
            <div class='clear'></div></div>
        <div class='clear'></div>
        {include file="footer.html"}
        </div>

    </body>
</html>
